package com.xinxin.datastructure.dataobject;

import java.lang.reflect.Array;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/4/22 16:58
 */
public class Student {
    private String name;
    private int score;

    public Student(String name, int score) {
        this.name = name;
        this.score = score;
    }

    @Override
    public boolean equals(Object obj) {
        Student student = (Student) obj;
        return name == student.name && score == student.score;
    }

    @Override
    public String toString() {
        return String.format("Student(name: %s, score: %d)", name, score);
    }
}
